<template>
  <div id="movieBody">
    <el-container>
      <el-header style="height: 260px;">
        <div>
            <div>
                <span>雨纷纷</span>
                <el-divider direction="vertical"></el-divider>
                <span>旧故里</span>
                <el-divider direction="vertical"></el-divider>
                <span>草木深</span>
            </div>
            <el-divider></el-divider>
            <div>
                <span>雨纷纷</span>
                <el-divider direction="vertical"></el-divider>
                <span>旧故里</span>
                <el-divider direction="vertical"></el-divider>
                <span>草木深</span>
            </div>
            <el-divider></el-divider>
            <div>
                <span>雨纷纷</span>
                <el-divider direction="vertical"></el-divider>
                <span>旧故里</span>
                <el-divider direction="vertical"></el-divider>
                <span>草木深</span>
            </div>
            <el-divider></el-divider>
            <div>
                <span>雨纷纷</span>
                <el-divider direction="vertical"></el-divider>
                <span>旧故里</span>
                <el-divider direction="vertical"></el-divider>
                <span>草木深</span>
            </div>
            <el-divider></el-divider>
          </div>
      </el-header>
      <el-main>
        <el-row :gutter="30" style="margin-left:0px;margin-right: 0px;">
          <el-col :span="6" v-for="(o, index) in 16" :key="o" :offset="index > 0 ? 2 : 0">
              <el-card :body-style="{ padding: '0px' }">
                <el-link :underline="false"><img src="https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png" class="image" @click="goPlay"></el-link>
                <div style="padding: 10px;">
                  <el-link :underline="false"><span @click="goPlay">好吃的汉堡</span></el-link>
                  <div class="bottom clearfix">
                    <time class="time">{{ currentDate }}</time>
                  </div>
                </div>
              </el-card>
            </el-col>
        </el-row>
        <el-pagination background layout="prev, pager, next" :total="pageTotal"></el-pagination>
      </el-main>
    </el-container>

  </div>
</template>

<script>
  export default {
    data() {
      return {
        pageTotal:1000,
        currentDate:new Date(),
      }
    },
    methods:{
      goPlay() {
        this.$router.push({
          path: '/vedioPlay'
        });
      }
    }

  }
</script>

<style>
  .el-row {
      margin-bottom: 10px;
      &:last-child {
        margin-bottom: 0;
      }

    }
    .el-col {
      border-radius: 4px;
      padding: 0;
      margin-left: 0;
      margin-top: 5px;
      margin-bottom: 5px;
    }
    .time {
        font-size: 13px;
        color: #999;
      }

      .bottom {
        margin-top: 13px;
        line-height: 12px;
      }

      .button {
        padding: 0;
        float: right;
      }


      .clearfix:before,
      .clearfix:after {
          display: table;
          content: "";
      }

      .clearfix:after {
          clear: both
      }
      .el-pagination{
        text-align: center;

      }
</style>
